package com.erp.erp_ui.Stock_Info;

import com.erp.erp_entitys.Stock_Info.StockInfo;
import com.erp.erp_servers.Stock_Info.StockInfoService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 采购主信息表(StockInfo)表控制层
 *
 * @author makejava
 * @since 2020-10-13 19:50:54
 */
@RestController
@RequestMapping("stockInfo")
public class StockInfoController {
    /**
     * 服务对象
     */
    @Resource
    private StockInfoService stockInfoService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public StockInfo selectOne(Integer id) {
        return this.stockInfoService.queryById(id);
    }

}